<%@page import="com.netistate.pojo.Project"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<div class="minWin">
	<table id="" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="bg_color_common" style="font-size: 12">
		
		<tr>
			<td align="right" title="产品名称及型号">请选择项目:</td>
			<td>
				<select style="width: 140px;" name="pid" id="pid">
				  <% List<Project> projectList = (List<Project>)request.getSession().getAttribute("projectList");
					 for(Project p : projectList){%>
					<option value="<%=p.getId() %>" title="<%=p.getProjectName() %>"><%=p.getProjectName() %></option>
					<%} %>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" title="产品型号">产品型号:</td>
			<td>
				<input id="pro" name="pro" style="width:280px;" />
				<span style="color:red">*</span>
			</td>
		</tr>
		<!-- <tr>
			<td align="right" title="产品原始版本">产品原始版本:	</td>
			<td><input name="preVersion" /></td>
		</tr> -->
		<tr>
			<td align="right" title="产品更新版本">产品更新版本:	</td>
			<td><input name="postVersion" id="postVersion" style="width:280px;" /></td>
		</tr>
		
		<tr>
			<td align="right" title="出厂日期">出厂日期:</td>
			<td>
				<%
			       Date date = new Date();
			       SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy-MM-dd");
				   String endString = sdFormat.format(date);
				   Calendar calendar = Calendar.getInstance();
				   calendar.setTime(date);
				   calendar.add(Calendar.DATE,-7);
			       Date date2 = calendar.getTime();
				   String startString = sdFormat.format(date2);
				   String dayStart = (String)request.getSession().getAttribute("dayStartQuery");
				   if(dayStart != null){
					  startString = dayStart;
					}else{
				   }
				%>
			<input id="outDate" name="outDate" type="text" style="width:80px" onclick="MyCalendar.SetDate(this)" value="<%=endString %>" readonly="readonly" /></td>
		</tr>
		
		<tr>
			<td align="right" title="License截止时间">License截止时间:</td>
			<td><input id="licenseTime" name="starttime" type="text" style="width:80px" onclick="MyCalendar.SetDate(this)" value="<%=endString %>" readonly="readonly" />
		</tr>
		
		<tr>
			<td align="right" title="硬件提供商">产品硬件提供商:</td>
			<td>
				<select id="hardwareSource" name="hardwareSource">				
					<option value="1U_3710">1U_3710</option>
					<option value="1U_5400">1U_5400</option>
					<option value="2U_6840">2U_6840</option>
					<option value="2U_CAR3002C">2U_CAR3002C</option>
					<option value="宝德单路服务器">宝德单路服务器</option>
				</select>
			</td>
		</tr>	
		
		<tr>
			<td align="right" title="IP地址">IP地址:</td>
			<td>
				<input type="text" name="ip" id="ip" style="width:200px;"/>
				<span style="color:red">*</span>
			</td>
		</tr>
		
		<tr>
			<td align="right" title="子网掩码">子网掩码:</td>
			<td><input name="mask" id="mask" style="width:200px;"/></td>
		</tr>
		
		<tr>
			<td align="right" title="网关">网关:</td>
			<td><input name="gateway" id="gateway" style="width:200px;"/></td>
		</tr>
		
		<tr>
			<td align="right" title="DNS">DNS:</td>
			<td><input name="dns" id="dns" style="width:200px;" /></td>
		</tr>
		
		<tr>
			<td align="right" title="节点数">节点数:</td>
			<td>
				<input name="nodes" id="nodes" />
				<span style="color:red">*</span>
			</td>
		</tr>
		
		<tr>
			<td align="right" title="模块">模块:</td>
			<td>
				<select id="module" name="module" onchange="changeModuleInProduct()">				
					<option value="默认模块">默认模块</option>
					<option value="定制模块" >定制模块</option>
				</select>
				<input type="text" id="defaultModuleProduct" value="所有模块" style="display:none;width:250px;" />
				<input type="text" id="customModuleProduct" value="模块之间用','分隔" style="display:none;width:250px;" />
			</td>
		</tr>
		<tr>
			<td align="right" title="Demo机硬件配置">产品硬件配置:</td>
			<td><textarea rows="5" cols="35" name="productConfig" id="productConfig"></textarea></td>
		</tr>
		<tr>
			<td align="right" title="工作记录">工作记录:</td>
			<td><textarea rows="5" cols="35" name="workNote" id="workNote"></textarea></td>
		</tr>
		
	</table>
</div>